<!--
 * @Author: your name
 * @Date: 2022-02-17 16:46:39
 * @LastEditTime: 2022-02-17 16:58:14
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \0217\定位.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定位</title>
    <style>
        .wrap{
            width: 600px;
            height: 300px;
            margin: 20px auto 50px;
            background: burlywood;
            position: relative;
        }
        .wrap div{
            width: 50px;
            height: 50px;
        }
        .xiangdui{
            background: blue;
            position: relative;
            top: 20%;
            left: 50%;
            margin-left: -25px;
            transform: rotate(45deg);
        }
        .juedui{
            background: blue;
            position: absolute;
            top: 20%;
            left: 50%;
            margin-left: -25px;
        }
        .guding{
            background: blue;
            position: fixed;
            top: 20%;
            left: 50%;
            margin-left: -25px;
        }
        .putong{
            width: 50px;
            height: 50px;
            background: rebeccapurple;
        }
    </style>
</head>
<body>
    <div class="wrap">
        <div class="xiangdui">

        </div>
        <div class="putong">

        </div>
    </div>
    <div class="wrap">
        <div class="juedui">

        </div>
        <div class="putong">

        </div>
    </div>
    <div class="wrap">
        <div class="guding">

        </div>
        <div class="putong">

        </div>
    </div>
</body>
</html>